home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5825 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: toad.stack.urc.tue.nl!not-for-mail
  2. From: eka@stack.urc.tue.nl (Eka Durmin)
  3. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.applications,comp.unix.amiga
  4. Subject: NEED HELP: Unix sh-script
  5. Date: 20 Mar 1996 19:02:38 +0100
  6. Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
  7. Message-ID: <4iph7u$cct@toad.stack.urc.tue.nl>
  8. NNTP-Posting-Host: toad.stack.urc.tue.nl
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hello,
  12.  
  13. I want to make a script which can be executed on an Unix. 
  14. I have the same script (it does the same) for the Amiga shell-script:
  15.   step1: 
  16.     what: search a keyword in a textfile
  17.     output: the line(s) (not the line numbers) containing this keyword
  18.     Amiga: grep
  19.     Unix: grep
  20.   step2:
  21.     what: get the #th line of a textfile (= output of step1)
  22.     output: the line
  23.     Amiga: Lines
  24.     Unix: ???
  25.   step3:
  26.     what: get the #th word of a line
  27.     output: the word
  28.     Amiga: GetWord
  29.     Unix: ???
  30.  
  31. As you can see, I don't know how to do step 2 and 3.
  32.  
  33. It is also possible to write a C-programme... it should be easy... but 
  34. I don't have any experiences with C.
  35. -- 
  36. E. Durmin                                                       
  37. email: eka@stack.urc.tue.nl
  38. www  : http://www.stack.urc.tue.nl/~eka/
  39. phone: +31(0)40-2112936                            
  40.  
  41. 'There is an inverse relationship between how 
  42. good something is and how much fun it is'                
  43.